package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PcPlatformGalleryMapper;
import com.ruoyi.system.domain.PcPlatformGallery;
import com.ruoyi.system.service.IPcPlatformGalleryService;

/**
 * 平台画廊 服务层实现
 * 
 * @author ruoyi
 */
@Service
public class PcPlatformGalleryServiceImpl implements IPcPlatformGalleryService
{
    @Autowired
    private PcPlatformGalleryMapper pcPlatformGalleryMapper;

    /**
     * 查询平台画廊
     * 
     * @param galleryId 平台画廊主键
     * @return 平台画廊
     */
    @Override
    public PcPlatformGallery selectPcPlatformGalleryByGalleryId(Long galleryId)
    {
        return pcPlatformGalleryMapper.selectPcPlatformGalleryByGalleryId(galleryId);
    }

    /**
     * 查询平台画廊列表
     * 
     * @param pcPlatformGallery 平台画廊
     * @return 平台画廊
     */
    @Override
    public List<PcPlatformGallery> selectPcPlatformGalleryList(PcPlatformGallery pcPlatformGallery)
    {
        return pcPlatformGalleryMapper.selectPcPlatformGalleryList(pcPlatformGallery);
    }

    /**
     * 新增平台画廊
     * 
     * @param pcPlatformGallery 平台画廊
     * @return 结果
     */
    @Override
    public int insertPcPlatformGallery(PcPlatformGallery pcPlatformGallery)
    {
        return pcPlatformGalleryMapper.insertPcPlatformGallery(pcPlatformGallery);
    }

    /**
     * 修改平台画廊
     * 
     * @param pcPlatformGallery 平台画廊
     * @return 结果
     */
    @Override
    public int updatePcPlatformGallery(PcPlatformGallery pcPlatformGallery)
    {
        return pcPlatformGalleryMapper.updatePcPlatformGallery(pcPlatformGallery);
    }

    /**
     * 批量删除平台画廊
     * 
     * @param galleryIds 需要删除的平台画廊主键
     * @return 结果
     */
    @Override
    public int deletePcPlatformGalleryByGalleryIds(Long[] galleryIds)
    {
        return pcPlatformGalleryMapper.deletePcPlatformGalleryByGalleryIds(galleryIds);
    }

    /**
     * 删除平台画廊信息
     * 
     * @param galleryId 平台画廊主键
     * @return 结果
     */
    @Override
    public int deletePcPlatformGalleryByGalleryId(Long galleryId)
    {
        return pcPlatformGalleryMapper.deletePcPlatformGalleryByGalleryId(galleryId);
    }
}

